from timeit import Timer
from Primes import Primes

import sys
import math


def Problem():
    """By listing the first six prime numbers: 2, 3, 5, 7, 11,
    and 13, we can see that the 6th prime is 13.

    What is the 10001st prime number? """
    
    # Generate list of primes
    primes = Primes(10**6, 10001)
    print "Answer for Problem 7 = %d (%d th)" % (primes[-1],len(primes))
    
    
if __name__ == "__main__":
    t = Timer(setup='from __main__ import Problem', stmt='Problem()').timeit(1)
    print "Execution time = %0.3f seconds" %(t,)